namespace WMS.RealTime.Domain.Entities
{
    /// <summary>
    /// 大屏数据实体
    /// </summary>
    public class DashboardData
    {
        public int Id { get; set; }
        public string DataType { get; set; } = string.Empty; // 数据类型：DailyOverview, InventoryProportion, TodoItems等
        public string JsonData { get; set; } = string.Empty; // JSON格式的数据
        public DateTime CreatedTime { get; set; }
        public DateTime? UpdatedTime { get; set; }
        public bool IsActive { get; set; } = true;
    }

    /// <summary>
    /// 系统消息实体
    /// </summary>
    public class SystemMessage
    {
        public int Id { get; set; }
        public string Title { get; set; } = string.Empty;
        public string Content { get; set; } = string.Empty;
        public string MessageType { get; set; } = string.Empty; // Info, Warning, Error
        public DateTime CreatedTime { get; set; }
        public bool IsRead { get; set; } = false;
        public bool IsActive { get; set; } = true;
    }

    /// <summary>
    /// 告警信息实体
    /// </summary>
    public class AlertInfo
    {
        public int Id { get; set; }
        public string AlertType { get; set; } = string.Empty; // InventoryAboveLimit, InventoryBelowLimit, ExpiringGoods等
        public string Title { get; set; } = string.Empty;
        public string Description { get; set; } = string.Empty;
        public string Severity { get; set; } = string.Empty; // Low, Medium, High, Critical
        public DateTime CreatedTime { get; set; }
        public DateTime? ResolvedTime { get; set; }
        public bool IsResolved { get; set; } = false;
        public bool IsActive { get; set; } = true;
    }
} 